package com.woniu.finance.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@TableName("t_finance_records")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Records {

    private Integer id;

    //标的id
    private Integer tenId;

    //还款金额
    private BigDecimal recordAmount;

    //还款时间
    private String recordTime;

    //还款类型 1正常还款  2代偿
    private Integer recordType;
    //融资企业id
    private String financeId;
    //逻辑删除
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("是否删除标识 0：未删除  1：删除")
    @TableLogic(value = "0",delval = "1")
    private Integer is_delete;
}
